package com.moleq.models;

import com.moleq.db.DatabaseSchema;


public class GlobalDiscountSetting {
	private int gd_no; 
	private String gd_desc = "";
	private double gd_value; 
	private String type; 
	private String create_datetime;
	private String update_datetime;
	private boolean isEdit = false;
	
	public GlobalDiscountSetting(){}
	
	
	public GlobalDiscountSetting(int gd_no, String gd_desc, double gd_value,
			String create_datetime, String update_datetime) {
		this.gd_no = gd_no;
		this.gd_desc = gd_desc;
		this.gd_value = gd_value;
		this.create_datetime = create_datetime;
		this.update_datetime = update_datetime;
	}


	public int getGd_no() {
		return gd_no;
	}

	public void setGd_no(int gd_no) {
		this.gd_no = gd_no;
	}

	public String getGd_desc() {
		return gd_desc;
	}

	public void setGd_desc(String gd_desc) {
		this.gd_desc = gd_desc;
	}

	public double getGd_value() {
		return gd_value;
	}

	public void setGd_value(double gd_value) {
		this.gd_value = gd_value;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getCreate_datetime() {
		return create_datetime;
	}
	public void setCreate_datetime(String create_datetime) {
		this.create_datetime = create_datetime;
	}
	public String getUpdate_datetime() {
		return update_datetime;
	}
	public void setUpdate_datetime(String update_datetime) {
		this.update_datetime = update_datetime;
	}
	public boolean isEdit() {
		return isEdit;
	}
	public void setEdit(boolean isEdit) {
		this.isEdit = isEdit;
	}


	public String toMGData(String Action){
		String Result = Action + "|" + DatabaseSchema.GLobalDiscountSetting.SCHEMA_NAME 
					+ "|(" + getGd_no() + ",'" + getGd_desc() + "'," + getGd_value() +",'" 
					+ getCreate_datetime() + "','" + getUpdate_datetime() + "')";
		return Result;
	}
}
